package com.more.offer.designpatterns.unit1;

/**
 * @author pinoc
 * @date 2021/7/25
 * @description 红黑双方
 */
public class ChessPiece {
	private ChessPieceUnit chessPieceUnit;

	private int x;
	private int y;

	public ChessPiece(ChessPieceUnit chessPieceUnit, int x, int y) {
		this.chessPieceUnit = chessPieceUnit;
		this.x = x;
		this.y = y;
	}

	public ChessPiece() {
	}

	public ChessPieceUnit getChessPieceUnit() {
		return chessPieceUnit;
	}

	public void setChessPieceUnit(ChessPieceUnit chessPieceUnit) {
		this.chessPieceUnit = chessPieceUnit;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}
}
